﻿using Domain.Entity;
using Domain.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.AppService.CFSKAppService
{
	public class CFSKAppService : ICFSKAppService
	{
		private readonly ICFSKRepository cFSKRepository;

		public CFSKAppService(ICFSKRepository cFSKRepository)
		{
			this.cFSKRepository = cFSKRepository;
		}

		public Task<bool> AddCFSKAsync(CFSK cFSK)
		{
			return cFSKRepository.AddCFSKAsync(cFSK);
		}

		public Task<bool> DeleteCFSKAsync(int id)
		{
			return cFSKRepository.DeleteCFSKAsync(id);
		}

		public Task<List<CFSK>> GetCFSKAsync()
		{
			return cFSKRepository.GetCFSKAsync();
		}

		public Task<List<CFSK>> GetCFSKAsyncById(string kid)
		{
			return cFSKRepository.GetCFSKAsyncById(kid);
		}

		public Task<bool> UpdateCFSKAsync(CFSK cFSK)
		{
			return cFSKRepository.UpdateCFSKAsync(cFSK);
		}
	}
}
